package org.easy.struts.convert;

import javax.servlet.ServletException;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

public class ConverterPlugin implements PlugIn {

	public void destroy() {
	}

	public void init(ActionServlet servlet, ModuleConfig config)throws ServletException {
		ConvertUtils.register(new SqlDateConvert(),java.sql.Date.class);
		ConvertUtils.register(new UtilDateConvert(),java.util.Date.class);
	}
}
